package com.hm.pan.mapper;

import java.sql.Timestamp;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.hm.pan.model.FileInfo;

@Mapper
public interface FileUploadMapper {
	
	public Object findMd5(String md5);
	
	public Boolean insertFileInfo(FileInfo FileInfo);
	
	public Boolean insertUserFile(@Param("uploadTime")Timestamp uploadTime,@Param("fileName")String fileName,
			@Param("md5")String md5,@Param("fatherId") Long fatherId,@Param("userId")Long userId);
	
	public Object findByNameFatherId(@Param("fileName")String fileName,@Param("fatherId")Long fatherId);

}
